﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： CustomerEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-07-31
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
	/// <summary>
	///客户数据实体  
	/// </summary>
    [PrimaryKey("CustomerID")]
	public class Customer
	{
		///<summary>
		///客户
		///</summary>
		public Customer()
		{
		}	
    
		
		///<summary>
		///主键
		///</summary>
        [Column("CustomerID","主键")]
        public int CustomerID { get; set; }

		///<summary>
		///姓名
		///</summary>
        [Column("CustomerName","姓名")]
        public string CustomerName { get; set; }

		///<summary>
		///性别
		///</summary>
        [Column("Sex","性别")]
        public int Sex { get; set; }

		///<summary>
		///电话
		///</summary>
        [Column("Mobile","电话")]
        public string Mobile { get; set; }

		///<summary>
		///邮箱
		///</summary>
        [Column("Email","邮箱")]
        public string Email { get; set; }

		///<summary>
		///省
		///</summary>
        [Column("Proince","省")]
        public int Proince { get; set; }

		///<summary>
		///市
		///</summary>
        [Column("City","市")]
        public int City { get; set; }

		///<summary>
		///区
		///</summary>
        [Column("Location","区")]
        public int Location { get; set; }

		///<summary>
		///逻辑标识(1：可用 0：禁用)
		///</summary>
        [Column("IsActive", "逻辑标识(1：可用 0：禁用)")]
        public int IsActive { get; set; }

		///<summary>
		///详细地址
		///</summary>
        [Column("Address","详细地址")]
        public string Address { get; set; }

		///<summary>
		///创建时间
		///</summary>
        [Column("CreateDate","创建时间")]
        public DateTime CreateDate { get; set; }

		///<summary>
		///客户级别
		///</summary>
        [Column("CustomerLevel","客户级别")]
        public string CustomerLevel { get; set; }

		///<summary>
		///UnionID
		///</summary>
        [Column("UnionID","UnionID")]
        public string UnionID { get; set; }

		///<summary>
		///OpenID
		///</summary>
        [Column("OpenID","OpenID")]
        public string OpenID { get; set; }

	}
}